#include<stdio.h>
#include<unistd.h>
void myod(char fd)
{
    char ch,line[16];
    int i;
    int a=0;
    int j=0;
    while(read(fd,&ch,1)!=0){
        line[j%16]=ch;
    if((j+1)%16==0){
        printf("%07o  ",16*a);
	a++;
        for(i=0;i<16;i++)
        {
            if(line[i]=='\n')
            {printf("%5s","\\n");continue;}
        if(line[i]=='\t')
            {printf("%5s","\\t");continue;}
            putchar(line[i]);
        }
        putchar('\n');
        printf("         ");
	for(i=0;i<16;i++)
        {
            
            if(line[i]=='\n')
            {printf("0%-4x",'\n');continue;}
        if(line[i]=='\t')
            {printf("0%-4x",'\t');continue;}
            printf("%-5x",line[i]);
        }
        putchar('\n');
    }
    j++;

    }
}
